﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Net;
using System.Threading;
using System.IO;
using CH.Easy.Utility;

namespace CH.Wallpaper.Download
{
    public abstract class Downloader
    {
        protected HttpHelper http = new HttpHelper();
        protected int index = 1;
        public virtual List<string> ResolutionList { get; private set; }
        public string URL { get; set; }
        public string SavePath { get; set; }
        public string Resolution { get; set; }
        public List<string> ImageUrlList { get; set; }
        
        public event ItemDownloadCompleteDelegate ItemDownloadCompleteEvent;
        public Downloader()
        {

        }
        protected void Loader_ItemDownloadCompleteEvent(string msg)
        {
            ItemDownloadCompleteEvent(msg);
        }

        public abstract bool IsAlbum(string url);
        public abstract string FilterTitle(string title);
        public abstract void Start();
    }
}
